

def fibonacci():
    n = int(input('指定n：'))
    i, a, b = 0, 0, 1
    while i < n-1:
        a, b = b, a + b
        i += 1
    print(a)


if __name__ == '__main__':
    fibonacci()
